import React from 'react'
import ReactDOM from 'react-dom'

// 函数组件
const MyElement = props => {
  return <h1>Hello {props.name}</h1>
}

ReactDOM.render(
  // element({name: '你好'}),
  <MyElement name="千锋！" />,
  document.getElementById('root')
)